
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
			var arr = [4, 7, 2, 4, 9, 7, 5];
			//
			var newArr = [];
			for (var i = 0; i < arr.length; i++) {
				if (newArr.indexOf(arr[i]) === -1){
					newArr.push(arr[i]);
				}
			}
			
			newArr.toString();
			console.log(newArr);
			
		</script>
	</body>
</html>